package hotciv.standard.visual;

import hotciv.common.GameImpl;
import hotciv.factories.SemiCivFactory;
import hotciv.framework.Game;
import hotciv.view.tool.ActionTool;
import hotciv.view.tool.CompositionalTool;
import hotciv.view.tool.InspectTool;
import hotciv.view.tool.MoveTool;
import hotciv.view.tool.NextTurnTool;
import minidraw.framework.DrawingEditor;
import minidraw.standard.MiniDrawApplication;

public class PlayGame {
	
	public static void main(String[] args) {
		Game game = new GameImpl(new SemiCivFactory());

	    DrawingEditor editor = 
	      new MiniDrawApplication( "Click anywhere to see Drawing updates",  
	                               new CivGameFactory(game) );

	    editor.open();
	    CompositionalTool ct = new CompositionalTool(editor);
	    ct.addTool(new MoveTool(editor, game));
	    ct.addTool(new InspectTool(editor, game));
	    ct.addTool(new NextTurnTool(editor, game));
	    ct.addTool(new ActionTool(editor, game));
	    editor.setTool(ct);
	    editor.showStatus("Click anywhere to state changes reflected on the GUI");
	}
}
